home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
Illustrator 6.0 SDK r1 Mac
/
AI Plugin Interface
/
AIUser.h
< prev
next >
Wrap
Text File
|
1995-12-21
|
2KB
|
110 lines
/**
AIUser.h
Copyright (c) 1995 Adobe Systems Incorporated.
All Rights Reserved
Adobe Illustrator 6.0 User Utilities Suite.
**/
#ifndef __AIUser__
#define __AIUser__
/*******************************************************************************
**
** Imports
**
**/
#include "AITypes.h"
#include "AIColor.h"
#if Macintosh
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=mac68k
#endif
#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif
#endif
/*******************************************************************************
**
** Constants
**
**/
#define kAIUserSuite "AI User Suite"
#define kAIUserVersion 2
#if Macintosh
#define kAIMacUserSuite "AI Mac User Suite"
#define kAIMacUserVersion 2
#endif
enum {
kShortUnits, // "in"
kLongSingularUnits, // "inch"
kLongPluralUnits // "inches"
};
#define kUnknownUnitsErr '?UNT'
/*******************************************************************************
**
** Suite
**
**/
typedef struct {
MACPASCAL Boolean (*Cancel) ( void );
MACPASCAL void (*UpdateProgress) ( long current, long max );
MACPASCAL void (*SetProgressText) ( char *text );
MACPASCAL void (*CloseProgress) ( void );
MACPASCAL void (*FixedToString) ( Fixed value, short precision, unsigned char *string );
MACPASCAL void (*StringToFixed) ( unsigned char *string, Fixed *value );
MACPASCAL void (*IUFixedToString) ( Fixed value, short precision, unsigned char *string );
MACPASCAL void (*IUStringToFixed) ( unsigned char *string, Fixed *value );
MACPASCAL void (*IUFixedToStringUnits) ( Fixed value, unsigned char *string );
MACPASCAL void (*IUStringUnitsToFixed) ( unsigned char *string, Fixed *value );
MACPASCAL FXErr (*GetUnitsString) ( short format, unsigned char *string );
} AIUserSuite;
#if Macintosh
typedef struct {
MACPASCAL Boolean (*ModalFilterProc) ( DialogPtr theDialog, EventRecord *theEvent, short *itemHit );
MACPASCAL FXErr (*PreviewColorSwatch) ( WindowPtr window, Rect *swatchRect, AIColor *colorSpec );
} AIMacUserSuite;
#endif
#if Macintosh
#if PRAGMA_IMPORT_SUPPORTED
#pragma import off
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=reset
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif